Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weighted validators (BFT-408, BFT-424) #77

Merged
merged 45 commits into from
Apr 17, 2024
Merged

Conversation

ElFantasma
Copy link
Contributor

What ❔

Add weights to the validator set and change the consensus threshold rules to require >80% of weight.

Why ❔

We need for the L1 contracts to only accept blocks that were built by our node (which is the single leader). We can give more weight to our node, so that a QC isn't valid unless it signs. In turn this will be useful in the future

@ElFantasma ElFantasma marked this pull request as ready for review March 22, 2024 19:42
@ElFantasma ElFantasma requested a review from pompon0 as a code owner March 22, 2024 19:42
node/actors/bft/src/leader/replica_commit.rs Outdated Show resolved Hide resolved
node/actors/bft/src/leader/replica_commit.rs Outdated Show resolved Hide resolved
node/actors/bft/src/tests.rs Outdated Show resolved Hide resolved
node/libs/roles/src/validator/messages/consensus.rs Outdated Show resolved Hide resolved
node/libs/roles/src/validator/testonly.rs Outdated Show resolved Hide resolved
node/libs/roles/src/validator/tests.rs Outdated Show resolved Hide resolved
@ElFantasma ElFantasma merged commit 8f93e07 into main Apr 17, 2024
5 checks passed
@ElFantasma ElFantasma deleted the weighted_validators branch April 17, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants